import { defineStore } from 'pinia'
import { ref, computed } from 'vue'

const useAppStore = defineStore('app', () => {
  const isCollapse = ref(false)

  const handleChangeMenu = () => {
    isCollapse.value = !isCollapse.value
  }
  const getCollapseStatus = computed(() => isCollapse)
  return {
    getCollapseStatus,
    handleChangeMenu,
  }
})

export default useAppStore
